<div class="modal fade in ip-box" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" id="newlyAdded">
	<div class="modal-dialog " role="document" >
		<div class="modal-content">
			<div class="modal-header">
				<h4 class="modal-title pull-left">商品分类管理 — 新增</h4>
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
			</div>
			<div class="modal-body">
				<form name="newlyAddedForm">
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 control-label text-right">上级商品分类：</label>
						<div class="col-xs-12 col-sm-9">
							<input type="text" 
								   class="form-control readonly"
								   readonly 
								   ng-model="productName" 
								/>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 control-label text-right">商品分类名称：</label>
						<div class="col-xs-12 col-sm-9">
							<input type="text" 
								   name="productName" 
								   class="form-control"
								   autocomplete="off" 
								   required 
								   ng-model="newlyAdded_productName" 
								   />
							<label class="red required">*</label>
							<div class="error ng-hide"	ng-show="newlyAddedForm.productName.$dirty&amp;&amp;newlyAddedForm.productName.$invalid">
								<small class="error" ng-show="newlyAddedForm.productName.$error.required">请输入商品分类名称</small>
							</div>
						</div>
					</div>								
					<div class="form-group">
						<label class="col-xs-12 col-sm-3 control-label text-right">商品分类排序：</label>
						<div class="col-xs-12 col-sm-9">
							<input type="text" 
								   name="categoryOrder" 
								   class="form-control" 
								   autocomplete="off" 
								   required 
								   ng-model="newlyAdded_categoryOrder" 
								   /> 
							<label	class="red required">*</label>
							<div class="error ng-hide"	ng-show="newlyAddedForm.categoryOrder.$dirty&amp;&amp;newlyAddedForm.categoryOrder.$invalid">
								<small class="error" ng-show="newlyAddedForm.categoryOrder.$error.required">请输入资源分类排序</small>
							</div>
						</div>
					</div>	
					<div class="form-group height-auto">
						<label class="col-xs-12 col-sm-3 control-label text-right">描述:</label>
						<div class="col-xs-12 col-sm-9">
							<textarea rows="5" type="text" name="description"
								class="form-control" ng-model="newlyAdded_description">                                    
                                </textarea>
						</div>
					</div>
					<div class="col-sm-12">
						<div class="modal-footer">
							<button type="button" class="btn btn-primary" data-dismiss="modal">取消</button>
							<button type="button" 
									class="btn btn-primary" 
									data-dismiss="modal"
									ng-disabled="newlyAddedForm.$invalid"
									ng-click="submitNewlyAdded()"
									>确定新增
							</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>